<?php
session_unset();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>bee PHP framework demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="logIn.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-8912866-6']);
  _gaq.push(['_setDomainName', 'phpbee.vlexofree.com']);
  _gaq.push(['_setAllowHash', 'false']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<div id="logIn">
  <form action="index.php" method="post" name="prijav" id="prijav">
    <table width="120" border="0" cellpadding="5">
      <tr>
      <td colspan="2"><div class="naslov" align="center">bee PHP framework demo<br />
          <br />
      </div></td></tr>
      <tr>
        <td width="66%" height="30"><div align="right">username</div></td>
        <td width="34%" height="30"><input class="linput" autocomplete="off" name="log_username" type="text" id="log_username" value="<?php echo htmlentities(@$_COOKIE['username'], ENT_QUOTES, "UTF-8") ?>" onkeypress="jeLiEnter(this, event);" /></td>
      </tr>
      <tr>
        <td height="30"><div align="right">password </div></td>
        <td height="30"><input class="linput" name="log_password" type="password" id="log_password" value="" onkeypress="jeLiEnter(this, event);" /></td>
      </tr><tr>
      <td height="50" colspan="2">
        <div align="right">
          <input name="Button" type="button" class="gumb" onclick="Udji()" value="Ulaz" />
        </div></td>
                </tr>
      <tr>
      	<td height="50" colspan="2"><div align="right">powered by dy</div></td>
     	</tr>
      <tr>
        <td height="50" colspan="2"><div align="right"><?php echo (isset($_REQUEST["sys_msg"]) ? $_REQUEST["sys_msg"] : "") ?></div></td>
      </tr>
      <tr>
        <td height="50" colspan="2"><div align="right">
                                           for login details visit us on: <a target="_blank" href="http://code.google.com/p/beetwo">beeTwo</a>
                                           <br /><br />development <a href="/html">documentation</a>
                                           <br /><br />PHP <a href="/blog">blog</a></div></td>
      </tr>

      </table>
  </form>
</div>
<!--VlexoFree_LinkBack-->
<script language="JavaScript" type="text/JavaScript">
document.getElementById('log_username').focus();
//document.getElementById('log_password').focus();
function Udji()
{	SaljiFormu("prijav");
	return;
}
function jeLiEnter(obj, evt)
{	var tipka= new Number;
	if (window.event)
	{	tipka = window.event.keyCode;
	}	else if(evt)
	{	tipka = evt.which;
	}	else
	{	return true;
	}
	if (obj.name == "log_password" && tipka == 13)
	{	//document.getElementById('log_username').focus();
		Udji();
		return true;
	}
	//alert(obj.name + "-" + tipka);
	window.status = tipka;
	if (obj.name == "log_username" && tipka == 13)
	{	document.getElementById('log_password').focus();
		return true;
	}
}
function SaljiFormu(IdForme)
{ document.forms[IdForme].submit();
	return;
}
</script>
</body>
</html>
